﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
using System.Xml.Serialization;

namespace YourPersonalTrainer.DataAccessLayer
{
    public class WorkoutDA
    {
        //public void SaveToFile(Workout workout, string fileName)
        //{
        //    XmlSerializer s = new XmlSerializer(typeof(Workout));
        //    TextWriter w = new StreamWriter(fileName);
        //    s.Serialize(w, this);
        //    w.Close();

        //}

        //public void LoadFromFile(Workout workout, string fileName)
        //{
        //    XmlSerializer s = new XmlSerializer(typeof(Workout));
        //    TextReader r = new StreamReader(fileName);
        //    workout = (Workout)s.Deserialize(r);
        //    r.Close();

        //}
    }
}
